/*
 * Copyright © 2024-2025 Wenze Wei
 *
 * This file is part of StadionOS.
 *
 * This Source Code Form is subject to the terms of the GNU General Public License, v. 2.0.
 * You can obtain a copy of the GPL at
 * https://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 */

#include "test.h"

void test_math() {
    Sprint("acos(0) = %f\n", Scos(0));
    Sprint("asin(0) = %f\n", Sasin(0));
    Sprint("atan(1) = %f\n", Satan(1));
    Sprint("atan2(1, 1) = %f\n", Satan2(1, 1));
    Sprint("cos(0) = %f\n", Scos(0));
    Sprint("exp(1) = %f\n", Sexp(1));
    Sprint("log(1) = %f\n", Slog(1));
    Sprint("log10(100) = %f\n", Slog10(100));
    Sprint("pow(2, 3) = %f\n", Spow(2, 3));
    Sprint("sqrt(9) = %f\n", Ssqrt(9));
    Sprint("ceil(2.3) = %f\n", Sceil(2.3));
    Sprint("floor(2.7) = %f\n", Sfloor(2.7));
    Sprint("fmod(5.3, 2) = %f\n", Sfmod(5.3, 2));
}